package cn.mrcode.fd.blog.dto.article;

import cn.mrcode.fd.blog.dto.ResData;
import cn.mrcode.fd.blog.entity.Category;
import cn.mrcode.fd.blog.enu.ArticleError;

import java.util.List;

/**
 * 新建文章所需要的数据，和提交所返回的数据
 * @author : zhuqiang
 * @version : V1.0
 * @date : 2016/6/11 18:34
 */
public class NewResData extends ResData {
    private String userAccount;
    private List<Category> categorysAll; //该用户所有的分类
    private String newbody; //新建文章默认文字


    public NewResData(boolean success) {
        super(success);
    }

    public NewResData(boolean success, ArticleError articleError) {
        super(success, articleError.getCode(), articleError.getInfo());
    }

    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    public List<Category> getCategorysAll() {
        return categorysAll;
    }

    public void setCategorysAll(List<Category> categorysAll) {
        this.categorysAll = categorysAll;
    }

    public String getNewbody() {
        return newbody;
    }

    public void setNewbody(String newbody) {
        this.newbody = newbody;
    }
}
